<?php
namespace app\admin\controller;
use think\Controller;
use app\admin\model\Register as registerModel;

class Register extends controller
{
	public function index()
	{
		return \view("register");
	}
	
	public function register()
	{
		$model = new registerModel();
		$res = $model->register();
		if($res){
			$this->success("注册成功","Login/index");
		}else{
			$this->error("注册失败,请重新注册","Register/index");
		}
	}
}
?>